/**
 * <p>Title: Director.java>
 * <p>Description: 设计模式-建造模式：导演角色
 * <p>Company: YSS
 * @author yangsongsong
 * @date 2019年1月10日
 */
package com.yss.builder;

public class Director {
	private Builder mbuilder;

	/**
	 * 构造方法传入Builder
	 */
	public Director(Builder builder) {
		this.mbuilder = builder;
	}

	/**
	 * 产品建造过程调用
	 */
	public void construct() {
		mbuilder.buildName();
		mbuilder.buildSex();
		mbuilder.buildAge();
		mbuilder.buildAddress();
	}
}
